<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <link rel="stylesheet" th:href="@{/css/newBook.css}" type="text/css">
</head>
<style>

</style>



<body>

<form name="myForm"  action="/upload/addNewBook" onsubmit=" time()" method="post">



  <label for="lname">图书名称 </label><br>
  <input required="required" type="text" id="lname" name="bookName" placeholder="图书名称.."><br>

  <label for="lname">作者 </label><br>
  <input required="required" type="text" id="作者" name="writer" placeholder="作者.."><br>

  <label for="lname">出版社 </label><br>
  <input required="required" type="text" id="出版社" name="press" placeholder="出版社.."><br>


  <label for="time" >时间</label><br>
  <input required="required" type="date" id ="time" name="inputTime"  formmethod="post" ><br>

  <label for="lname">库存量 </label><br>
  <input required="required" type="number" id="库存量" name="number" placeholder="库存量.."><br>


  <input type="submit" onclick="window.location='addNewBook'" value="submit">
</form>


<div>

</div>


</body>
</html>